<template>
  <div class="gerenzhongxin">
    <div class="gerenzhongxin-content">
      <div class="gerenzhongxin-font">
        <van-icon name="setting-o" />
      </div>
      <div class="gerenzhongxin-login">
        <div>
          <van-icon name="user-circle-o" />
        </div>
        <div class="gongn">
          <strong @click="$router.push('/login')">登录</strong>
          <div>登录后解锁更多功能</div>
        </div>
      </div>
      <div class="gerenzhongxin-main">
        <p>我的账号</p>
        <div class="gerenzhongxin-lists">
          <div>
            <div>---</div>
            <div>充值金额</div>
          </div>
          <div>
            <div>---</div>
            <div>可用积分</div>
          </div>
          <div>
            <div>---</div>
            <div>状态</div>
          </div>
        </div>
      </div>
      <div class="gerenzhongxin-jiankangdangan">
        <p>健康档案</p>
        <div style="display:flex; flex-direction: column; align-items: center;">
          <van-button round type="default" color="rgb(243, 247, 252)" size='small' @click="newMsg">
            <span style="color:#4c8ce1" class="gerenzhongxin-jiankangdangan-content">
              新建档案
            </span>
          </van-button>
          <span style="color:#d6d6d6;font-size:12px">请添加健康档案,进行档案管理</span>
        </div>
      </div>
      <div class="gerenzhongxin-gongju">
        <p>工具与服务</p>
        <div class="gerenzhongxin-gongju-content">
          <div>
            <div>
              <van-icon name="setting-o" />
            </div>
            <div>修改密码</div>
          </div>
          <div>
            <div>
              <van-icon name="edit" />
            </div>
            <div>地址管理</div>
          </div>
          <div>
            <div>
              <van-icon name="bulb-o" />
            </div>
            <div>用药提醒</div>
          </div>
          <div>
            <div>
              <van-icon name="balance-list-o" />
            </div>
            <div>充值记录</div>
          </div>
          <div>
            <div>
              <van-icon name="newspaper-o" />
            </div>
            <div>病例</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    newMsg () {
      location.href = "/homeIndex/personal/personaldata"
    }
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
.gerenzhongxin {
  width: 100vw;
  height: 100vh;
  display: flex;
  background: #f5f5f5;
}
.gerenzhongxin-content {
  margin: 16px;
  /* padding: 0.16rem; */
  flex: 1;
  position: relative;
}
.gerenzhongxin-font {
  font-size: 24px;
  position: absolute;
  /* top: 0.1rem; */
  top: 10px;
  /* right: 0.1rem; */
  right: 10px;
}
.gerenzhongxin-login {
  margin-top: 60px;
  /* margin-top: 0.6rem; */
  display: flex;
  align-items: center;
}
.gerenzhongxin-login div {
  height: 100px;
  /* height: 1rem; */
}
.gongn {
  margin-top: 20px;
  /* margin-top: 0.2rem; */
}
.gerenzhongxin-login i {
  /* margin-left: 0.2rem; */
  margin: 0 20px;
  font-size: 80px;
}
.gerenzhongxin-login strong {
  font-size: 18px;
}
.gerenzhongxin-login div div {
  margin-top: 16px;
  /* margin-top: 0.16rem; */
  font-size: 14px;
  color: #9a9a9a;
}
.gerenzhongxin-main {
  width: 100%;
  border-radius: 20px;
  /* border-radius: 0.2rem; */
  background: #ffffff;
  padding: 16px;
  /* padding: 0.16rem; */
  margin: 10px 0;
  /* margin: 0.1rem 0; */
  box-sizing: border-box;
}
.gerenzhongxin-main p {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
  /* margin-bottom: 0.2rem; */
}
.gerenzhongxin-lists {
  width: 100%;
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.gerenzhongxin-jiankangdangan {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  /* border-radius: 0.2rem; */
  padding: 16px;
  /* padding: 0.16rem; */
  margin: 10px 0;
  /* margin: 0.1rem 0; */
  box-sizing: border-box;
}
.gerenzhongxin-jiankangdangan-content::before {
  content: "+";
}
.gerenzhongxin-gongju {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  /* border-radius: 0.2rem; */
  padding: 16px;
  /* padding: 0.16rem; */
  margin: 10px 0;
  /* margin: 0.1rem 0; */
  box-sizing: border-box;
}
.gerenzhongxin-gongju p {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
  /* margin-bottom: 0.2rem; */
}
.gerenzhongxin-gongju-content {
  display: flex;
  flex-wrap: wrap;
}
.gerenzhongxin-gongju-content > div {
  width: 25%;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  /* margin-top: 0.12rem; */
}
.gerenzhongxin-gongju-content > div i {
  font-size: 20px;
}
</style>